package cn.javabb.phonebook.service;

import cn.javabb.phonebook.entity.Admin;
import cn.javabb.phonebook.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @desc:
 * @author: javabb (javabob(a)163.com)
 * @create: 2020/05/02 22:42
 */
@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public Admin login(Admin admin) {
        Admin a = adminMapper.selectOne(admin);
        return a;
    }
}
